package com.ss.android.article.base.feature.detail2.b;

import android.content.Context;
import android.content.DialogInterface;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.support.v4.content.ContextCompat;
import android.text.Layout;
import android.text.SpannableStringBuilder;
import android.text.TextPaint;
import android.text.TextUtils;
import android.text.method.MovementMethod;
import android.text.style.ClickableSpan;
import android.text.style.ForegroundColorSpan;
import android.view.View;
import android.view.ViewTreeObserver;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.bytedance.article.common.c.TTUtils;
import com.bytedance.common.utility.UIUtils;
import com.bytedance.common.utility.c.SharedPreferenceCompat;
import com.bytedance.frameworks.b.a.ComponentsManifest;
import com.bytedance.frameworks.baselib.network.http.util.TaskInfo;
import com.ss.android.account.Spipe;
import com.ss.android.action.a.CommentActionThread;
import com.ss.android.action.a.a.Comment;
import com.ss.android.action.b.FeedViewHolder;
import com.ss.android.article.base.app.AppData;
import com.ss.android.article.base.feature.app.a.ArticleConstants;
import com.ss.android.article.base.feature.detail.model.CommentWrapper;
import com.ss.android.article.base.feature.feed.FeedOnMovedToScrapHeapListener;
import com.ss.android.article.base.feature.feed.vh.CardViewPools;
import com.ss.android.article.base.ui.DiggLayout;
import com.ss.android.article.base.ui.EllipsisTextView;
import com.ss.android.article.base.ui.EllipsisTextView.a;
import com.ss.android.article.base.ui.PriorityLinearLayout;
import com.ss.android.article.base.ui.k;
import com.ss.android.common.callback.SSCallback;
import com.ss.android.common.dialog.AlertDialog;
import com.ss.android.common.lib.MobClickCombiner;
import com.ss.android.common.util.NetworkUtils;
import com.ss.android.image.AsyncImageView;
import com.ss.android.image.BaseImageManager;
import com.ss.android.image.loader.ImageLoader;
import com.ss.android.model.AbsArticle;
import com.ss.android.model.ForumLink;
import com.ss.android.newmedia.a.TimeFormatter;

import java.util.ArrayList;
import java.util.List;

public final class CommentItemViewHolder extends FeedViewHolder implements View.OnClickListener, View.OnLongClickListener, FeedOnMovedToScrapHeapListener, a {
    class CustomClickableSpan extends ClickableSpan {
        public void onClick(View view) {
            if (CommentItemViewHolder.this.G == 1 && CommentItemViewHolder.this.E != null) {
                CommentItemViewHolder.this.E.onCallback(new Object[]{Integer.valueOf(12), view, CommentItemViewHolder.this, CommentItemViewHolder.this});
            }
        }

        public void updateDrawState(TextPaint textPaint) {
        }
    }

    public TextView forumTv;
    public TextView btnViewAllTv;
    public TextView deleteTv;
    public LinearLayout subCommentsLL;
    SSCallback E;
    boolean isNightMode;
    int G;
    com.ss.android.article.base.ui.DiggAnimationView mDiggAnimationView;
    ImageLoader mImageLoader;
    TextView toutiaoHaoTagTv;
    boolean K;
    boolean L;
    private AbsArticle mAbsArticle;
    private AppData mAppData;
    private TimeFormatter mTimeFormatter;
    private Spipe mSpipe;
    private CardViewPools mCardViewPools;
    private final int mDp13;
    public CommentWrapper mCommentWrapper;
    public Context mContext;
    public View itemView;
    public AsyncImageView ssAvatarIv;
    public TextView ssUserTv;
    public TextView verifiedTextTv;
    public ImageView verifiedImgIv;
    public PriorityLinearLayout nameWrapperLL;
    public TextView descriptionTv;
    public DiggLayout diggLayout;
    public TextView commentCountTv;
    public EllipsisTextView contentTv;

    public CommentItemViewHolder(Context context,
                                 com.ss.android.article.base.ui.DiggAnimationView diggAnimationView,
                                 CardViewPools cardViewPools,
                                 boolean arg6) {
        this.mContext = context;
        this.mCardViewPools = cardViewPools;
        this.mDiggAnimationView = diggAnimationView;
        this.mAppData = AppData.getInstance();
        this.isNightMode = AppData.isNightMode();
        TTUtils.getNightModeColorFilter();
        new TaskInfo();
        new BaseImageManager(context);
        this.mTimeFormatter = TimeFormatter.getInstance(context);
        this.mSpipe = Spipe.inst();
        this.mDp13 = ((int) UIUtils.dp2px(this.mContext, 13f));
        this.L = arg6;
    }

    public final void bindData(AbsArticle article, CommentWrapper commentWrapper, boolean arg18, boolean arg19) {
        TextView v2_8;
        View v2_7;
        k v11;
        Drawable v7;
        int v9;
        int v8;
        if (commentWrapper != null && commentWrapper.mComment != null) {
            this.G = 1;
            this.mAbsArticle = article;
            this.mCommentWrapper = commentWrapper;
            this.K = arg19;
            Comment comment = commentWrapper.mComment;
            this.ssUserTv.setText(comment.userName);
            if (!comment.userVerified || (TextUtils.isEmpty(comment.verifiedReason))) {
                this.verifiedTextTv.setVisibility(View.GONE);
                this.verifiedImgIv.setVisibility(View.GONE);
            } else {
                this.verifiedTextTv.setVisibility(View.VISIBLE);
                this.verifiedImgIv.setVisibility(View.VISIBLE);
                this.verifiedTextTv.setText(comment.verifiedReason);
                this.verifiedTextTv.post(new Runnable() {

                    public final void run() {
                        if (CommentItemViewHolder.this.verifiedTextTv != null) {
                            Layout layout = CommentItemViewHolder.this.verifiedTextTv.getLayout();
                            if (layout != null) {
                                int lineCount = layout.getLineCount();
                                if (lineCount > 0) {
                                    if (layout.getEllipsisCount(lineCount - 1) <= 0) {
                                    } else if (layout.getEllipsisStart(lineCount - 1) < 2) {
                                        CommentItemViewHolder.this.verifiedTextTv.setVisibility(View.GONE);
                                    }
                                    return;
                                }
                                CommentItemViewHolder.this.verifiedTextTv.setVisibility(View.GONE);
                            }
                        }
                    }
                });
            }

            android.support.design.a.a(this.mContext, this.mImageLoader, comment.authorBadge, this.mDp13, this.nameWrapperLL, this.mCardViewPools, this.contentTv.getResources().getDimensionPixelSize(com.ss.android.article.browser.R.dimen.by));
            String additionalInfo = comment.additionalInfo;
            if (android.support.design.a.isTextEmpty(comment.mediaName)) {
                this.toutiaoHaoTagTv.setVisibility(View.GONE);
                this.contentTv.setPadding(0, 0, 0, 0);
            } else {
                this.toutiaoHaoTagTv.setVisibility(View.VISIBLE);
                this.contentTv.setPadding(0, ((int) UIUtils.dp2px(this.mContext, 10f)), 0, 0);
                this.toutiaoHaoTagTv.setText("「" + comment.mediaName + "」头条号作者");
            }

            if (android.support.design.a.isTextEmpty(additionalInfo)) {
                additionalInfo = this.mTimeFormatter.a(comment.createTime * 1000);
            }

            if (!android.support.design.a.isTextEmpty(additionalInfo)) {
                this.descriptionTv.setVisibility(View.VISIBLE);
                this.descriptionTv.setText(((CharSequence) additionalInfo));
            } else {
                this.descriptionTv.setVisibility(View.GONE);
            }

            this.diggLayout.setText(android.support.design.a.c(comment.diggCount));
            this.diggLayout.setSelected(comment.userDigg);
            this.contentTv.setText(comment.text);
            if (this.L) {
                this.a(0);
            } else {
                this.a(comment.replyCount);
            }

            this.btnViewAllTv.setVisibility(View.GONE);
            this.contentTv.setOnEllipsisStatusChangeListener(((a) this));
            this.contentTv.setMaxLines(8);
            this.contentTv.requestLayout();
            if (!this.mSpipe.isLogin || this.mSpipe.userId != comment.userId) {
                this.deleteTv.setVisibility(View.GONE);
            } else {
                this.deleteTv.setVisibility(View.VISIBLE);
            }

            int v2_1 = this.mAppData.mFontSizePref;
            if (v2_1 < 0 || v2_1 > 3) {
                v2_1 = 0;
            }

            com.ss.android.article.base.feature.detail2.config.a.a(4, this.contentTv, ArticleConstants.K[v2_1]);
            com.ss.android.article.base.feature.detail2.config.a.b(4, this.contentTv);
            if (comment.forumLink != null && !android.support.design.a.isTextEmpty(comment.forumLink.b)) {
                ForumLink v2_2 = comment.forumLink;
                this.forumTv.setText(v2_2.b);
                this.forumTv.setVisibility(View.VISIBLE);
                if (arg18) {
                    boolean v4 = AppData.getInstance().D();
                    long v6 = 0;
                    if (!TextUtils.isEmpty(v2_2.a)) {
                        long v2_5 = 0;
                        try {
                            Uri v2_4 = Uri.parse(v2_2.a);
                            additionalInfo = v4 ? v2_4.getQueryParameter("cid") : v2_4.getQueryParameter("fid");
                            if (android.support.design.a.isTextEmpty(additionalInfo)) {
                            } else {
                                v2_5 = Long.valueOf(additionalInfo).longValue();
                            }
                        } catch (Exception v2_3) {
                            v2_3.printStackTrace();
                        }
                        v6 = v2_5;
                    }
                    String v4_1 = v4 ? "concern_page" : "forum_detail";
                    MobClickCombiner.onEvent(this.mContext, v4_1, "show_detail_comment", v6, comment.groupId);
                }
            } else {
                this.forumTv.setVisibility(View.GONE);
            }
            if (!this.L && comment.commentList != null && comment.commentList.size() > 0) {
                List v5 = comment.commentList;
                v2_1 = v5.size();
                int v3 = comment.replyCount > v2_1 ? v2_1 + 1 : v2_1;
                int v4_2;
                for (v4_2 = 0; v4_2 < v5.size(); ++v4_2) {
                    Object v2_6 = v5.get(v4_2);
                    SpannableStringBuilder v6_1 = new SpannableStringBuilder();
                    v6_1.append(((Comment) v2_6).userName);
                    if (((Comment) v2_6).userVerified) {
                        v8 = v6_1.length();
                        v9 = "[verified]".length() + v8;
                        v6_1.append("[verified]");
                        v7 = ContextCompat.getDrawable(this.mContext, com.ss.android.article.browser.R.drawable.all_newv);
                        v7.setBounds(0, 0, v7.getIntrinsicWidth(), v7.getIntrinsicHeight());
                        v11 = new k(v7);
                        v11.a = ((int) UIUtils.dp2px(this.mContext, 1f));
                        v11.b = ((int) UIUtils.dp2px(this.mContext, 1f));
                        v6_1.setSpan(v11, v8, v9, 33);
                    }

                    if (((Comment) v2_6).isPgcAuthor > 0) {
                        v8 = v6_1.length();
                        v9 = "[author]".length() + v8;
                        v6_1.append("[author]");
                        v7 = ContextCompat.getDrawable(this.mContext, com.ss.android.article.browser.R.drawable.mv);
                        v7.setBounds(0, 0, v7.getIntrinsicWidth(), v7.getIntrinsicHeight());
                        v11 = new k(v7);
                        v11.a = ((int) UIUtils.dp2px(this.mContext, 1f));
                        v11.b = ((int) UIUtils.dp2px(this.mContext, 1f));
                        v6_1.setSpan(v11, v8, v9, 33);
                    }

                    v6_1.append(":");
                    v6_1.setSpan(new ForegroundColorSpan(Color.parseColor("#979FAC")), 0, v6_1.length(), 33);
                    v6_1.append(" ");
                    v6_1.append(((Comment) v2_6).text);
                    v2_7 = this.mCardViewPools.acquire(0);
                    if (v2_7 == null) {
                        v2_7 = new TextView(this.mContext);
                    }

                    ((TextView) v2_7).setOnClickListener(new View.OnClickListener() {

                        public final void onClick(View arg6) {
                            View v0 = arg6;
                            if ((((TextView) v0).getMovementMethod() instanceof com.ss.android.article.base.feature.update.activity.t.b)) {
                                MovementMethod v0_1 = ((TextView) v0).getMovementMethod();
                                if ((v0_1 != null && ((com.ss.android.article.base.feature.update.activity.t.b) v0_1).a)) {
                                    return;
                                }
                            }
                            if (CommentItemViewHolder.this.G == 1 && CommentItemViewHolder.this.E != null) {
                                CommentItemViewHolder.this.E.onCallback(new Object[]{Integer.valueOf(11), arg6, CommentItemViewHolder.this});
                            }
                        }
                    });
                    ((TextView) v2_7).setText(((CharSequence) v6_1));
                    ((TextView) v2_7).setMovementMethod(new com.ss.android.article.base.feature.update.activity.t.b(0, CustomClickableSpan.class));
                    com.ss.android.article.base.feature.detail2.config.a.a(6, ((TextView) v2_7), 15);
                    com.ss.android.article.base.feature.detail2.config.a.b(6, ((TextView) v2_7), ContextCompat.getColor(this.mContext, com.ss.android.article.browser.R.color.ssxinzi2));
                    ((TextView) v2_7).setEllipsize(TextUtils.TruncateAt.END);
                    ((TextView) v2_7).setMaxLines(3);
                    ((TextView) v2_7).setLineSpacing(UIUtils.dp2px(this.mContext, 5f), 1f);
                    if (v2_7 != null) {
                        com.ss.android.article.base.utils.k v6_2 = new com.ss.android.article.base.utils.k(((TextView) v2_7));
                        ((TextView) v2_7).getViewTreeObserver().addOnPreDrawListener(((ViewTreeObserver.OnPreDrawListener) v6_2));
                        ((TextView) v2_7).setTag(com.ss.android.article.browser.R.id.bz, v6_2);
                    }

                    this.subCommentsLL.addView(v2_7, new LinearLayout.LayoutParams(-2, -2));
                }

                if (v3 > v5.size()) {
                    v2_7 = this.mCardViewPools.acquire(0);
                    if (v2_7 == null) {
                        v2_7 = new TextView(this.mContext);
                    }

                    ((TextView) v2_7).setText(String.format(this.contentTv.getResources().getString(com.ss.android.article.browser.R.string.comment_view_all_replies), Integer.valueOf(comment.replyCount)));
                    com.ss.android.article.base.feature.detail2.config.a.a(8, ((TextView) v2_7), 15);
                    com.ss.android.article.base.feature.detail2.config.a.a(((TextView) v2_7), ContextCompat.getColorStateList(this.mContext, com.ss.android.article.browser.R.color.zi5));
                    ((TextView) v2_7).setOnClickListener(new View.OnClickListener() {

                        public final void onClick(View arg6) {
                            if (CommentItemViewHolder.this.G == 1 && CommentItemViewHolder.this.E != null) {
                                CommentItemViewHolder.this.E.onCallback(new Object[]{Integer.valueOf(10), arg6, CommentItemViewHolder.this});
                            }
                        }
                    });
                    this.subCommentsLL.addView(v2_7, new LinearLayout.LayoutParams(-2, -2));
                }

                com.ss.android.article.base.feature.detail2.config.a.a(this.subCommentsLL);
                this.subCommentsLL.setVisibility(View.VISIBLE);
            }

            this.ssAvatarIv.setUrl(comment.avatarUrl);
        }
    }

    public final void a(int arg10) {
        String v0;
        Drawable v1 = null;
        if (arg10 <= 0) {
            this.commentCountTv.setCompoundDrawables(v1, v1, v1, v1);
        } else {
            this.commentCountTv.setCompoundDrawablesWithIntrinsicBounds(0, 0, com.ss.android.article.browser.R.drawable.comment_arrow_icon1, 0);
        }

        TextView v1_1 = this.commentCountTv;
        StringBuilder v2 = new StringBuilder(" ").append(this.mContext.getString(com.ss.android.article.browser.R.string.comment_dot)).append(" ");
        if (arg10 >= 10000) {
            v0 = String.format("%.1f", Double.valueOf(1 * (((double) arg10)) / 10000));
            v0 = 48 == v0.charAt(v0.length() - 1) ? v0.substring(0, v0.length() - 2) + "万条回复" : v0 + "万条回复";
        } else if (arg10 <= 0) {
            v0 = "回复";
        } else {
            v0 = String.valueOf(arg10) + "条回复";
        }

        v1_1.setText(v2.append(v0).toString());
    }

    public final void a(boolean arg3) {
        TextView v1 = this.btnViewAllTv;
        int v0 = arg3 ? View.VISIBLE : View.GONE;
        v1.setVisibility(v0);
    }

    public final void onMovedToScrapHeap() {
        View.OnClickListener v4 = null;
        if (this.G == 1) {
            if (this.subCommentsLL.getVisibility() == View.VISIBLE) {
                int v2;
                for (v2 = this.subCommentsLL.getChildCount() - 1; v2 >= 0; --v2) {
                    View v0 = this.subCommentsLL.getChildAt(v2);
                    ((TextView) v0).setOnClickListener(v4);
                    ((TextView) v0).setText("");
                    ((TextView) v0).setMovementMethod(((MovementMethod) v4));
                    ((TextView) v0).setLineSpacing(0f, 1f);
                    Object v1 = ((TextView) v0).getTag(com.ss.android.article.browser.R.id.bz);
                    if (v1 != null) {
                        ((TextView) v0).getViewTreeObserver().removeOnPreDrawListener(((ViewTreeObserver.OnPreDrawListener) v1));
                    }

                    this.subCommentsLL.removeView(v0);
                    this.mCardViewPools.release(0, v0);
                }

                this.subCommentsLL.setVisibility(View.GONE);
            }

            android.support.design.a.a(this.nameWrapperLL, this.mImageLoader, this.mCardViewPools);
        }
    }

    public final void onClick(View arg10) {
        Object[] v1;
        SSCallback v0;
        int v2 = View.GONE;
        int v5 = 2;
        int v3 = 3;
        if (this.E != null) {
            if (arg10 == this.ssAvatarIv) {
                if (this.G == 1) {
                    v0 = this.E;
                    v1 = new Object[v3];
                    v1[0] = Integer.valueOf(1);
                    v1[1] = arg10;
                    v1[v5] = this;
                    v0.onCallback(v1);
                }
            } else if (arg10 == this.ssUserTv) {
                if (this.G == 1) {
                    v0 = this.E;
                    v1 = new Object[v3];
                    v1[0] = Integer.valueOf(7);
                    v1[1] = arg10;
                    v1[v5] = this;
                    v0.onCallback(v1);
                }
            } else if (arg10 == this.btnViewAllTv) {
                if (this.G == 1) {
                    if (this.L) {
                        this.contentTv.setMaxLines(2147483647);
                        this.contentTv.setOnEllipsisStatusChangeListener(null);
                        this.contentTv.requestLayout();
                        this.btnViewAllTv.setVisibility(v2);
                    } else {
                        v0 = this.E;
                        v1 = new Object[v3];
                        v1[0] = Integer.valueOf(v2);
                        v1[1] = arg10;
                        v1[v5] = this;
                        v0.onCallback(v1);
                    }
                }
            } else if (arg10 != this.diggLayout) {
                if (arg10 == this.commentCountTv) {
                    if (this.G != 1) {
                        return;
                    }

                    MobClickCombiner.onEvent(this.mContext, "comment", "click_reply");
                    v0 = this.E;
                    v1 = new Object[v3];
                    v1[0] = Integer.valueOf(v3);
                    v1[1] = arg10;
                    v1[v5] = this;
                    v0.onCallback(v1);
                    return;
                }

                if (arg10 == this.contentTv) {
                    if (this.G != 1) {
                        return;
                    }

                    v0 = this.E;
                    v1 = new Object[v3];
                    v1[0] = Integer.valueOf(6);
                    v1[1] = arg10;
                    v1[v5] = this;
                    v0.onCallback(v1);
                    return;
                }

                if (arg10 == this.itemView) {
                    if (this.G != 1) {
                        return;
                    }

                    v0 = this.E;
                    v1 = new Object[v3];
                    v1[0] = Integer.valueOf(5);
                    v1[1] = arg10;
                    v1[v5] = this;
                    v0.onCallback(v1);
                    return;
                }

                if (arg10 == this.forumTv) {
                    if (this.G != 1) {
                        return;
                    }

                    v0 = this.E;
                    v1 = new Object[v3];
                    v1[0] = Integer.valueOf(4);
                    v1[1] = arg10;
                    v1[v5] = this;
                    v0.onCallback(v1);
                    return;
                }

                if (arg10 != this.deleteTv) {
                    return;
                }

                if (this.G != 1) {
                    return;
                }

                v0 = this.E;
                v1 = new Object[v3];
                v1[0] = Integer.valueOf(9);
                v1[1] = arg10;
                v1[v5] = this;
                v0.onCallback(v1);
            } else if (this.G == 1) {
                long v4 = this.mAbsArticle != null ? this.mAbsArticle.groupId : 0;
                MobClickCombiner.onEvent(this.mContext, "comment", "digg_button", v4, this.mCommentWrapper.mComment.commentId);
                com.ss.android.action.bb v1_1 = com.ss.android.action.bb.a();
                v1_1.a = true;
                if (v1_1.a != v1_1.b) {
                    v1_1.b = v1_1.a;
                    Object v0_1 = ComponentsManifest.findComponent(com.ss.android.cc.class);
                    if (v0_1 != null) {
                        SharedPreferences.Editor v0_2 = ((com.ss.android.cc) v0_1).getAppSettingSp().edit();
                        v0_2.putBoolean("comment_hint_showed", v1_1.b);
                        SharedPreferenceCompat.commit(v0_2);
                    }
                }

                if (this.mCommentWrapper.mComment.userDigg) {
                    android.support.design.a.showImageToast(this.mContext, com.ss.android.article.browser.R.string.ss_hint_digg, com.ss.android.article.browser.R.drawable.close_popup_textpage);
                    MobClickCombiner.onEvent(this.mContext, "comment", "already_digg");
                    return;
                }

                this.mCommentWrapper.mComment.userDigg = true;
                ++this.mCommentWrapper.mComment.diggCount;
                if (NetworkUtils.isNetworkAvailable(this.mContext)) {
                    new CommentActionThread(this.mContext, "digg", this.mCommentWrapper.mComment, this.mAbsArticle).start();
                }

                this.diggLayout.setText(android.support.design.a.c(this.mCommentWrapper.mComment.diggCount));
                this.diggLayout.onDiggClick();
            }
        }
    }

    public final boolean onLongClick(View arg5) {
        AlertDialog.Builder v1 = com.ss.android.j.b.createDialogBuilder(this.mContext);
        v1.setTitle(com.ss.android.article.browser.R.string.comment_dlg_op_title);
        ArrayList v0 = new ArrayList();
        v0.add(this.mContext.getString(com.ss.android.article.browser.R.string.comment_dlg_op_cppy));
        if (this.K) {
            v0.add(this.mContext.getString(com.ss.android.article.browser.R.string.ss_action_delete));
        } else {
            v0.add(this.mContext.getString(com.ss.android.article.browser.R.string.cf));
        }

        v1.setOnItemSelectedListener((CharSequence[]) v0.toArray(new String[v0.size()]), new DialogInterface.OnClickListener() {

            public final void onClick(DialogInterface arg7, int arg8) {
                Object[] v1_1;
                SSCallback v0;
                int v1 = 3;
                int v5 = 2;
                switch (arg8) {
                    case 0: {
                        if (CommentItemViewHolder.this.contentTv == null) {
                            return;
                        }

                        com.bytedance.common.utility.a.a.a(CommentItemViewHolder.this.mContext, "", CommentItemViewHolder.this.contentTv.getText());
                        break;
                    }
                    case 1: {
                        if (CommentItemViewHolder.this.K) {
                            if (CommentItemViewHolder.this.E == null) {
                                return;
                            }

                            v0 = CommentItemViewHolder.this.E;
                            v1_1 = new Object[v1];
                            v1_1[0] = Integer.valueOf(9);
                            v1_1[1] = CommentItemViewHolder.this;
                            v1_1[v5] = CommentItemViewHolder.this;
                            v0.onCallback(v1_1);
                            return;
                        }

                        if (CommentItemViewHolder.this.E == null) {
                            return;
                        }

                        v0 = CommentItemViewHolder.this.E;
                        v1_1 = new Object[v1];
                        v1_1[0] = Integer.valueOf(14);
                        v1_1[1] = CommentItemViewHolder.this;
                        v1_1[v5] = CommentItemViewHolder.this;
                        v0.onCallback(v1_1);
                        break;
                    }
                }
            }
        });
        v1.setCancelable(true);
        v1.show();
        return false;
    }
}

